package com.ityangxu.langchain4j.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ityangxu.langchain4j.entity.*;
import com.ityangxu.langchain4j.service.PetsService;
import com.ityangxu.langchain4j.service.UserService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "宠物管理")
@RestController
@RequestMapping("/pets")
public class PetsController {
    @Resource
    PetsService PetsService;
    //牛牛牛
    @PostMapping("/pets")
    public Result<IPage<Pets>> getPetsList(@RequestBody PetsDto petsDto) {
        return PetsService.getPetsList(petsDto);
    }
}
